package com.easylinkin.linkappapi.concretestrength.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.concretestrength.entity.ConcreteStrengthRecord;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * ConcreteStrengthRecord表数据库访问层
 *
 * @author zhengwen
 * @date 2022/10/23
 */
public interface ConcreteStrengthRecordMapper extends BaseMapper<ConcreteStrengthRecord> {


    /**
     * 查询分页
     *
     * @param page                      分页参数对象
     * @param appConcreteStrengthRecord 过滤参数对象
     * @return 查询分页结果
     */
    IPage<ConcreteStrengthRecord> selectPage(Page page, @Param("appConcreteStrengthRecord") ConcreteStrengthRecord appConcreteStrengthRecord);

    /**
     * 查询单条
     *
     * @param id 主键id
     * @return 查询结果
     */
    ConcreteStrengthRecord getOneById(@Param("id") Serializable id);

    /**
     * 根据详情查询测试记录
     *
     * @param id 详情id
     * @return 测试记录
     */
    List<ConcreteStrengthRecord> selectRecordListByDetailId(Long id);
}

